package kaka.controls.form
{
	import mx.containers.FormItem;

	public class InfoFormItem extends FormItem
	{
		public function InfoFormItem()
		{
			super();
			percentWidth=100;
		}
		public var dataField:String;
		public var editorField:String = "data";
		public var dataFun:Function;
		/**
		 * 组件名:MODataInfoForm
		 * <lib:XFormItem width="100%"
					   label="名称"
					   dataField="name"
					   editorField="text">
			    <mx:TextInput width="100%"/>
		    </lib:XFormItem>
		 * **/
		//返回XFormItem的子组件
		public function get editor():Object
		{
			if(numChildren > 0)
			{
				return getChildAt(0);
			}
			else
			{
				return {};
			}
		}
		
		
	}
}